<?php
	$tabs = array('index' => '', 'profile' => '', 'avatar' => '', 'password' => '', 'auth' => '', 'loginlog' => '');
	$tabs[$this->router->fetch_method()] = ' class="current"';
?>
<ul>
	<li<?php echo $tabs['index']; ?>><a href="<?php echo site_url('manage/user/index'); ?>">用户中心</a></li>
	<li<?php echo $tabs['profile']; ?>><a href="<?php echo site_url('manage/user/profile'); ?>">基本资料</a></li>
	<li<?php echo $tabs['password']; ?>><a href="<?php echo site_url('manage/user/password'); ?>">密码安全</a></li>
	<li<?php echo $tabs['avatar']; ?>><a href="<?php echo site_url('manage/user/avatar'); ?>">头像认证</a></li>
	<li<?php echo $tabs['auth']; ?>><a href="<?php echo site_url('manage/user/auth'); ?>">用户认证</a></li>
<?php if($tabs['loginlog']) { ?>
	<li<?php echo $tabs['loginlog']; ?>><a href="<?php echo site_url('manage/user/loginlog'); ?>">登录日志</a></li>
<?php } ?>
</ul>